Using Synonyms
Synonyms allow you to specify how QuickDraw GX objects are to be printed. Normally, you do not need to use synonyms because QuickDraw GX and the printer driver determine how output is to be rendered and handle it for you. There may be occasions, however, when you want to explicitly specify how an object is to be printed. For example, you might want to specify how to render a path in cubics or explicitly specify the PostScript operators to use when printing an object.A synonym is stored as a tag object that is referred to by the shapes, inks, transforms, or other objects that use it. There are several ways you can set up your tag object, which are described in the tag objects chapter of Inside Macintosh: QuickDraw GX Objects. Whenever you set up your tag, you must specify the tag type and the data itself. For example, the tag type for PostScript is
gxPostScriptTag
. Its data is a stream of PostScript, such as the following:
0 0 moveto 10 10 lineto strokeFor more information about the synonyms provided by QuickDraw GX, see the section "Synonyms" on page 4-11.
Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help